
<div class="ibox">
  <div class="ibox-title">
	  <h5>视频管理</h5>
	  <div class="nowrap pull-right" style="margin-top:10px">
	    <button data-modal='resource/editData?resource_id=${resource_id?c}' data-title="添加视频" class='layui-btn layui-btn-small'><i class='fa fa-plus'></i> 添加视频</button>
	  	<button onclick="history.go(-1);" data-title="返回" class='layui-btn layui-btn-small'>返回</button>
	  </div>
  </div>
<div class="ibox-content fadeInUp animated">
             
<form onsubmit="return false;" data-auto="" method="POST">
    <input type="hidden" value="resort" name="action"/>
    <table class="table table-hover">
        <thead>
            <tr>
                <th class='text-center'>ID</th>
                <th class='text-center'>标题</th>
                <th class='text-center'>图片</th>
                <th class='text-center'>操作</th>
            </tr>
        </thead>
        <tbody>
        
        <#list page.data as model>
             <tr>
                <td class='text-center'>${model.id?c}</td>
                <td class='text-center'>${model.title!""}</td>
                <td class='text-center'>
                	<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src="${model.img!''}"/>
                </td>
                <td class='text-center nowrap'>
                    <span class="text-explode">|</span>
                    <a data-modal='resource/editData?id=${model.id?c}' href="javascript:void(0)">编辑</a>
                    <span class="text-explode">|</span>
                    <a data-load='resource/delData?id=${model.id?c}' data-confirm="确定要删除吗？"  href="javascript:void(0)">删除</a>
                    <span class="text-explode">|</span>
                    <a data-update='${model.id?c}' data-action='resource/sortData?action=top' href="javascript:void(0)">置顶</a>
                    <span class="text-explode">|</span>
                    <a data-update='${model.id?c}' data-action='resource/sortData?action=up' href="javascript:void(0)">上移</a>
                    <span class="text-explode">|</span>
                    <a data-update='${model.id?c}' data-action='resource/sortData?action=down' href="javascript:void(0)">下移</a>
               </td>
            </tr>
          </#list>      
       </tbody>
    </table>
<p>
<ul class="pagination pull-right"> 
<#import "/common/page.html" as p> 
  <@p.page data=page url="resource/dataIndex" search_param=search_param />
</ul>
</p>
 
</form>

</div>  
</div>
